package cn.aitrox.ry.service.user.dto.in;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@Data
public class UserCreateInDto {

    @Length(min = 1, max = 20, message = "用户名称须在20个字符内")
    private String userName;

    @Length(min = 11, max = 11, message = "手机号必须是11位")
    private String mobile;

    @NotNull(message = "单位不能为空")
    private Integer companyId;

}
